﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Xml.Serialization;
using System.Runtime.Serialization;

namespace imeem.library
{
    [XmlRoot("item")]
    public class PlaylistData : ContentData
    {
        private int _numberOfItems;
        private string _playListEmbedUrl;
        private List<string> _titles;
        private string _iconUrl;

        [XmlElement("numberOfItems")]
        public int NumberOfItems
        {
            get { return _numberOfItems; }
            set { _numberOfItems = value; }
        }

        [XmlElement("playlistEmbedUrl")]
        public string EmbedUrl
        {
            get { return _playListEmbedUrl; }
            set { _playListEmbedUrl = value; }
        }

        [XmlElement("iconUrl")]
        public string IconUrl
        {
            get { return _iconUrl; }
            set { _iconUrl = value; }
        }

        [XmlArray("titles")]
        [XmlArrayItem("item")]
        public List<string> Titles
        {
            get { return _titles; }
            set { _titles = value; }
        }
    }
}
